<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='商品分类管理',active='cate'">
<head th:replace="/manage/header::headerFragment(title,active)">
  <!-- 引入 layui.css -->
  <link href="//unpkg.com/layui@2.8.0/dist/css/layui.css" rel="stylesheet">

  <!-- 引入 layui.js -->
  <script src="//unpkg.com/layui@2.8.0/dist/layui.js"></script>
</head>
<body>
<div th:replace="/manage/header::header-body"></div>
<div class="row">
  <div class="col-2">
    <div th:replace="/manage/leftnav::leftnav"></div>
  </div>
  <div class="col-10 content-page">
    <div class="panel panel-default" style="margin-left: 10px">
      <!-- Default panel contents -->
      <div class="panel-heading">举报列表</div>
      <table class="table table-striped table-bordered">
        <thead>
        <tr>
          <th>#</th>
          <th>举报标题</th>
          <th>举报详情</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="reported,status: ${reported}">
          <td th:text="${status.count}"></td>
          <td th:text="${reported.report_title}"></td>
          <td th:text="${reported.report_detail}"></td>
          <td th:text="${reported.status == '0' ? '未审核' : (reported.status == '1' ? '已通过' : '未通过')}"></td>

          <td>
            <a th:href="@{'/solve/getReportedByUserIdAndId/'+${reported.reported_id}+'/'+${reported.user_reported_id}}" class="btn btn-primary">审核</a>
          </td>
        </tr>
        </tbody>
      </table>
      <div class="row">
        <!--  <div th:replace="common/paging :: pageAdminNav(${goods})"></div>-->
      </div>
    </div>
  </div>
</div>


</body>
</html>